package com.open.capacity.service.impl;

import com.open.capacity.common.model.CompanyModel;

import com.open.capacity.mapper.CompanyDao;
import com.open.capacity.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author YangGang
 * @Title:
 * @Description: TODO
 * @date 2021/6/29/10:09
 */
@Service
public class CompanyServiceImpl implements CompanyService {
    @Autowired
    private CompanyDao companyDao;

    @Override
    public void update(CompanyModel company) {
        companyDao.update(company);
    }

    @Override
    public List<CompanyModel> findAll() {
        return companyDao.findAll();
    }
}
